package p270jp.pxv.android.model;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.p024v4.media.C0261e;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import p089d.C2421c;
import p216hn.DefaultConstructorMarker;
import p325m0.MutabilityOwnership;
import p389ob.SerializedName;

/* compiled from: CollectionTag.kt */
/* renamed from: jp.pxv.android.model.CollectionTag */
/* loaded from: classes2.dex */
public final class CollectionTag implements Parcelable {
    public static final String UNCATEGORIZED_TAG_NAME;
    @SerializedName("count")
    private final int count;
    @SerializedName(AppMeasurementSdk.ConditionalUserProperty.NAME)
    private final String name;
    public static final Companion Companion = new Companion(null);
    public static final Parcelable.Creator<CollectionTag> CREATOR = new Creator();
    public static final int $stable = 8;

    /* compiled from: CollectionTag.kt */
    /* renamed from: jp.pxv.android.model.CollectionTag$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }
    }

    /* compiled from: CollectionTag.kt */
    /* renamed from: jp.pxv.android.model.CollectionTag$Creator */
    /* loaded from: classes2.dex */
    public static final class Creator implements Parcelable.Creator<CollectionTag> {
        @Override // android.os.Parcelable.Creator
        public final CollectionTag createFromParcel(Parcel parcel) {
            MutabilityOwnership.m3745m(parcel, "parcel");
            return new CollectionTag(parcel.readString(), parcel.readInt());
        }

        @Override // android.os.Parcelable.Creator
        public final CollectionTag[] newArray(int i) {
            return new CollectionTag[i];
        }
    }

    public CollectionTag(String str, int i) {
        MutabilityOwnership.m3745m(str, AppMeasurementSdk.ConditionalUserProperty.NAME);
        this.name = str;
        this.count = i;
    }

    public static /* synthetic */ CollectionTag copy$default(CollectionTag collectionTag, String str, int i, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = collectionTag.name;
        }
        if ((i2 & 2) != 0) {
            i = collectionTag.count;
        }
        return collectionTag.copy(str, i);
    }

    public final String component1() {
        return this.name;
    }

    public final int component2() {
        return this.count;
    }

    public final CollectionTag copy(String str, int i) {
        MutabilityOwnership.m3745m(str, AppMeasurementSdk.ConditionalUserProperty.NAME);
        return new CollectionTag(str, i);
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    @Override // java.lang.Object
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof CollectionTag)) {
            return false;
        }
        CollectionTag collectionTag = (CollectionTag) obj;
        return MutabilityOwnership.m3749h(this.name, collectionTag.name) && this.count == collectionTag.count;
    }

    public final int getCount() {
        return this.count;
    }

    public final String getName() {
        return this.name;
    }

    @Override // java.lang.Object
    public int hashCode() {
        return (this.name.hashCode() * 31) + this.count;
    }

    @Override // java.lang.Object
    public String toString() {
        StringBuilder c = C0261e.m12042c("CollectionTag(name=");
        c.append(this.name);
        c.append(", count=");
        return C2421c.m7803c(c, this.count, ')');
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        MutabilityOwnership.m3745m(parcel, "out");
        parcel.writeString(this.name);
        parcel.writeInt(this.count);
    }
}
